﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ST.Buz.Base.Entity
{
	/// <summary>
	/// 角色下的功能
	/// </summary>
	[Serializable]
	[Table("Sys_RoleAction")]
	public partial class Sys_RoleAction
	{
		[Key]
		[Column("ID")]
		public int ID { get; set; }

		/// <summary>
		/// 角色ID
		/// </summary>
		[Column("RoleID")]
		public int RoleID { get; set; }

		/// <summary>
		/// 功能ID
		/// </summary>
		[Column("ActionID")]
		public int ActionID { get; set; }

		/// <summary>
		/// 功能代码
		/// </summary>
		[Column("ActionCode")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string ActionCode { get; set; }
	}
}
